﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ross.EntityFramework.Model
{
    [Table("ExamDB")]
    public class ExamDB : IEntity<int>
    {
        public int ID { get; set; }
        /// <summary>
        /// 题库标题
        /// </summary>
        [Required]
        [StringLength(50)]
        public string ExamTitle { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        [StringLength(50)]
        public string ClassName { get; set; }
        /// <summary>
        /// 题目类型
        /// </summary>
        [StringLength(10)]
        public string ExamType { get; set; }
        /// <summary>
        /// 题库内容
        /// </summary>
        public string ExamContent { get; set; }
        /// <summary>
        /// 参考答案
        /// </summary>
        public string ExamAnswer { get; set; }
        /// <summary>
        /// 发布者ID
        /// </summary>
        public long UserID { get; set; }
        /// <summary>
        /// 是否解决
        /// </summary>
        public bool IsHot { get; set; }
        /// <summary>
        /// 分数
        /// </summary>
        public decimal Points { get; set; }

    }
}
